package com.wind.taobao.api.trade.itemprop.rest
{
	import com.wind.taobao.api.IPublicAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.itemcat.features.get Request
	 * @author fxy
	 *
	 */
	public class ItemCatFeaturesGetRequest extends TaobaoRequest implements IPublicAPI
	{
		public override function get method():String
		{
			return "taobao.itemcat.features.get"
		}
		/**
		 * Y 	 类目ID。格式：数字
		 */
		[Bindable]
		public var cid:String;
		/**
		 * Y 	 属性的key。支持多条，以“,”分隔
		 */
		[Bindable]
		public var attr_keys:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasValue(cid))
			{
				throw new InvalidRequestParametersException("请求参数[cid]必须有值");
			}
		}
	}
}